<template>
  <div>右侧内容</div>
  <button @click="btn">点击弹出登录框</button>
  <input type="text" v-model = 'text'>
  {{ text }}
  <button @click="btns">按钮</button>
</template>
<script setup lang="ts">
import { getCurrentInstance, ComponentInternalInstance } from 'vue'
let { proxy } = getCurrentInstance() as ComponentInternalInstance
const btn = ()=>{
  console.log(proxy)
  proxy.$showLoginDialog()
}
import { debounce, throttle } from '@utils/tool'
let text = debounce('', 1000)

const btns = throttle(() => {
  console.log('123')
}, 1000)

</script>